using System;
using System.Collections.Generic;
using System.Linq;

namespace SilverMenu
{
	public enum FlickTypes
	{
		Forward,
		Back,
		Up,
		Down,
		All
	}

	public class Page
	{
		public String Name = "";
		public float TransitionTime = 0;
		
		public string[] Flicks;
		
		public List<GUIElement> Elements;

		public Page()
		{
			Flicks = new string[(int)FlickTypes.All];
			Elements = new List<GUIElement>();
		}

        public GUIElement GetElement(string name)
        {
            return Elements.FirstOrDefault(ge => ge.Name == name);
        }
	}
}
